<?php
      
     $title         =$this->formText('title',$this->data['0']['title'],array('class'=>'txttextbox'));
     $published 	=$this->formRadio('published',$this->data['0']['published'],null,array('0'=>'Ẩn','1'=>'Hiện'), ' ');
     $order         =$this->formText('order',$this->data['0']['order'],array('class'=>'txttextbox'));
     $images		=$this->formText('images',$this->data['0']['images'],array('class'=>'txttextbox'));
 
?>
<script type="text/javascript">

function BrowseServer( startupPath, functionData ){
	var finder = new CKFinder();
	finder.basePath = 'ckfinder/'; //Ä�Æ°á»�ng path nÆ¡i Ä‘áº·t ckfinder
	finder.startupPath = startupPath; //Ä�Æ°á»�ng path hiá»‡n sáºµn cho user chá»�n file
	finder.selectActionFunction = SetFileField; // hÃ m sáº½ Ä‘Æ°á»£c gá»�i khi 1 file Ä‘Æ°á»£c chá»�n
	finder.selectActionData = functionData; //id cá»§a text field cáº§n hiá»‡n Ä‘á»‹a chá»‰ hÃ¬nh
	//finder.selectThumbnailActionFunction = ShowThumbnails; //hÃ m sáº½ Ä‘Æ°á»£c gá»�i khi 1 file thumnail Ä‘Æ°á»£c chá»�n	
	finder.popup(); // Báº­t cá»­a sá»• CKFinder
} //BrowseServer

function SetFileField( fileUrl, data ){
	document.getElementById( data["selectActionData"] ).value = fileUrl;
}

</script>
<div>

<form name="appForm" method="post" action="" id="appForm">
<?php echo $this->render('/section/include/toolbar.php');?>
<?php 
     if (empty($this->error)==FALSE)
         {
           echo '<h2 class="error">'.$this->error.'</h2>'	;
         }
  ?>
  <table class="tbl_content" width="99%" cellspacing="0" cellpadding="4" border="0">
     <tr>
        <td class="left_lable">Title</td>
        <td class="right_lable"><?php echo $title;?></td>
     </tr>
    <tr>
        <td class="left_lable"> Images</td>
        <td class="right_lable">
         <?php echo $images; ?>
         <input onclick="BrowseServer('Images:/','images')" type="button" name="btnchonfile" id="btnchonfile" value="Browse" />
       </td>
     </tr>
      
     <tr>
        <td class="left_lable">Published</td>
        <td class="right_lable"><?php echo $published;?></td>
     </tr>  
     <tr>
        <td class="left_lable">Order</td>
        <td class="right_lable"><?php echo $order; ?></td>
      </tr>
      

  </table>
  <input type="hidden" name="key" id="id" value="edit"> 
</form>
</div>